<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td   colspan="6" class="t_bar2">基本信息</td>
	</tr>
	<tr>
		<td   align="right" rowspan="2" width="25%">标准化技术委员会（分会/工作组）<br>名称及编号：</td>
		<td align="right" width="25%"><span class="color_red">*</span>中文名称：</td>
		<td colspan="3">
			<input id="zh_title" name="proposal/zh_title" label="中文名称" type="text"  class="input_css required " style="width:200px" maxlength=100 value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>英文名称：</td>
		<td colspan="3">
			<input id="en_title" name="proposal/en_title" label="英文名称" type="text"  class="input_css required" style="width:200px" maxlength=100 value="<x:out select="$xmlData/data/proposal/en_title" />"/> 
		</td>
	</tr>
	<tr class="li_2">
	    <td  align="right"><span class="color_red">*</span>批准部门：</td>
		<td colspan="5"><input name="proposal/approval_department" label="批准部门" type="text"  class="input_css required " style="width:435px" maxlength="50" value="<x:out select="$xmlData/data/proposal/approval_department" />"/></td>
	</tr>
	<tr>
		
	    <td  align="right"><span class="color_red">*</span>承担期限：</td>
		<td colspan="5"><input name="proposal/commit_period" label="承担期限" type="text"  class="input_css required " style="width:435px" maxlength="50" value="<x:out select="$xmlData/data/proposal/commit_period" />"/></td>
	</tr>
	
	<tr>
	<td align="right"><span class="color_red">*</span>承担的标准化技术委员会的类别 ：</td>
	<td nowrap colspan="5" valign="middle">
	<label> <input type="radio" class="do " id="commit_category_01" style="vertical-align: middle;" name="commit_category" label="国际标化准组织TC秘书处" value="01" /><span style="vertical-align: middle;">国际标准化组织TC秘书处</span></label> 
	<label> <input type="radio" class="do " id="commit_category_02" style="vertical-align: middle;" name="commit_category" label="国际标准组织SC秘书处" value="02" /><span style="vertical-align: middle;">国际标准化组织SC秘书处</span></label>
	<label> <input type="radio" class="do " id="commit_category_03" style="vertical-align: middle;" name="commit_category" label="国际标化准组织WG秘书处" value="03" /><span style="vertical-align: middle;">国际标准化组织WG秘书处</span></label><br/>
	<label> <input type="radio" class="do " id="commit_category_04" style="vertical-align: middle;" name="commit_category" label="国家标化准组织TC秘书处" value="04" /><span style="vertical-align: middle;">国家标准化组织TC秘书处</span></label>
	<label> <input type="radio" class="do " id="commit_category_05" style="vertical-align: middle;" name="commit_category" label="国家标化准组织SC秘书处" value="05" /><span style="vertical-align: middle;">国家标准化组织SC秘书处</span></label>
	<label> <input type="radio" class="do " id="commit_category_06" style="vertical-align: middle;" name="commit_category" label="行业标化准组织WC秘书处" value="06" /><span style="vertical-align: middle;">行业标准化组织WC秘书处</span></label>
	<input type="hidden" name="proposal/commit_category_value" id="commit_category_value" class="required" value="<x:out select="$xmlData/data/proposal/commit_category_value" />" label="承担的标准化技术委员会的类别 " /> 
	<input type="hidden" name="proposal/commit_category_name" id="commit_category_name" value="<x:out select="$xmlData/data/proposal/commit_category_name" />" label="承担的标准化技术委员会的类别 " /></td>
	</tr>
	<tr>
	<td align="right" rowspan="2"><span class="color_red">*</span>企业标准化工作机构名称：</td>
	<td rowspan="2">
		<input id="en_title" name="proposal/org_title" label="企业标准化工作机构名称" type="text" required class="input_css required"  maxlength="100" value="<x:out select="$xmlData/data/proposal/org_title" />"/> 
	</td>
	<td align="right" rowspan="2">标准化工作人员：</td>
	<td align="right"><span class="color_red">*</span>专职人数：</td>
	<td>
		<input id="full_time_number" name="proposal/full_time_number" label="专职人数" type="text" onfocus="InitInput.setNumber(this,9,0,0)" class="input_css required" maxlength="100" value="<x:out select="$xmlData/data/proposal/full_time_number" />"/> 
	</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>兼职人数：</td>
	<td>
		<input id="part_time_number" name="proposal/part_time_number" label="兼职人数" type="text" onfocus="InitInput.setNumber(this,9,0,0)" class="input_css required" maxlength="100" value="<x:out select="$xmlData/data/proposal/part_time_number" />"/> 
	</td>
	</tr>
	<tr>
	<td  align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td colspan='5'>
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	</tr>
	<tr>
		<td   colspan="6" class="t_bar2"><span class="color_red">*</span>单位标准化工作机构负责人情况</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color1" style="display:none">*</span>姓名：</td>
	<td><input  name="proposal/charge_name" label="单位标准化工作机构负责人-->姓名" type="text"  class="input_css required"  maxlength="20" value="<x:out select="$xmlData/data/proposal/charge_name" />"/></td>
	<td align="right"><span class="color_red" id="color2" style="display:none">*</span>职务：</td>
	<td colspan="3"><input  name="proposal/charge_position" label="单位标准化工作机构负责人-->职务" type="text"  class="input_css required"  maxlength="50" value="<x:out select="$xmlData/data/proposal/charge_position" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color3" style="display:none">*</span>电话：</td>
	<td><input  name="proposal/charge_phone" label="单位标准化工作机构负责人-->电话" type="text"  class="input_css required"  maxlength="30" value="<x:out select="$xmlData/data/proposal/charge_phone" />"/></td>
	<td align="right"><span class="color_red" id="color4" style="display:none">*</span>传真：</td>
	<td colspan="3"><input  name="proposal/charge_fax" label="单位标准化工作机构负责人-->传真" type="text"  class="input_css required"  maxlength="30" value="<x:out select="$xmlData/data/proposal/charge_fax" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>手机：</td>
	<td><input  name="proposal/charge_tel" label="单位标准化工作机构负责人-->手机" type="text"  class="input_css mobile required"  maxlength="11" value="<x:out select="$xmlData/data/proposal/charge_tel" />"/></td>
	<td align="right"><span class="color_red" id="color6" style="display:none">*</span>电子邮箱：</td>
	<td colspan="3"><input  name="proposal/charge_email" label="单位标准化工作机构负责人-->电子邮箱" type="text" class="input_css email required"  maxlength="50" value="<x:out select="$xmlData/data/proposal/charge_email" />"/></td>
	</tr>
	
	<tr>
		<td   colspan="6" class="t_bar2"><span class="color_red">*</span>单位标准化工作机构联系人情况</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color1" style="display:none">*</span>姓名：</td>
	<td><input  name="proposal/charge_name2" label="单位标准化工作机构联系人-->姓名" type="text"  class="input_css required"  maxlength="20" value="<x:out select="$xmlData/data/proposal/charge_name2" />"/></td>
	<td align="right"><span class="color_red" id="color2" style="display:none">*</span>职务：</td>
	<td colspan="3"><input  name="proposal/charge_position2" label="单位标准化工作机构联系人-->职务" type="text"  class="input_css required"  maxlength="50" value="<x:out select="$xmlData/data/proposal/charge_position2" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color3" style="display:none">*</span>电话：</td>
	<td><input  name="proposal/charge_phone2" label="单位标准化工作机构联系人-->电话" type="text"  class="input_css required"  maxlength="30" value="<x:out select="$xmlData/data/proposal/charge_phone2" />"/></td>
	<td align="right"><span class="color_red" id="color4" style="display:none">*</span>传真：</td>
	<td colspan="3"><input  name="proposal/charge_fax2" label="单位标准化工作机构联系人-->传真" type="text"  class="input_css required"  maxlength="30" value="<x:out select="$xmlData/data/proposal/charge_fax2" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>手机：</td>
	<td><input  name="proposal/charge_tel2" label="单位标准化工作机构联系人-->手机" type="text"  class="input_css mobile required"  maxlength="11" value="<x:out select="$xmlData/data/proposal/charge_tel2" />"/></td>
	<td align="right"><span class="color_red" id="color6" style="display:none">*</span>电子邮箱：</td>
	<td colspan="3"><input  name="proposal/charge_email2" label="单位标准化工作机构联系人-->电子邮箱" type="text" class="input_css email required"  maxlength="50" value="<x:out select="$xmlData/data/proposal/charge_email2" />"/></td>
	</tr>
	
	<tr>
		<td   colspan="6" class="t_bar2">申报项目资金情况</td>
	</tr>
	<tr>
		<td  align="right"  >项目类别：</td>
		<td  colspan="2"><x:out select="$xmlData/data/proposal/grant_name" /></td> 
		<td  align="right">支持方式：</td>
		<td  >
			<span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
	</tr>
	<tr>
	<td   align="right" ><span class="color_red">*</span>申请资助资金（万元）：</td>
	<td  colspan="2">
	<input  name="proposal/sqje" id="sqje" label="申请资助资金" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/sqje" />"/> 
	</td>
	<td  align="right">资金级次：</td>
		<td colspan="3">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	<td  align="right" nowrap>归口管理部门：</td>
		<td colspan="2"><span name="proposal/org_name">无锡市质量技术监督局</span> </td>
	    <td  align="right">管理类别：</td>
		<td  colspan="2">
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></span>
		</td>
	</tr>
	<tr>
		<td  align="right" nowrap><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="5">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="5">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
	</tr>
	</table>
	<table  width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td    class="t_bar2">申请资助依据条款</td>
		
	</tr>
	<tr>
		<td >
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
</table>
<br/>

<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
		<td    class="t_bar2" colspan="8">人员信息</td>
		
	</tr>
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="项目联系人联系电话" type="text" required class="input_css required"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="项目联系人联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="项目联系人电子邮箱" type="text" required class="input_css required email"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		</td>
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
	
	
</table>
<script type="text/javascript">

$(function(){
	cydw('org1');
	cydw('org2');
});

function cydw(id){
	var count =0 ;
	$("#"+id).find("input[type='text']").each(function(){
		if($.trim($(this).val()) != ''){
			count +=1;
		}
	});
	if(count != 0){
		$("#"+id).find("input[type='text']").each(function(){
			$(this).addClass("required");
		});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','');
		});
	}else{
		$("#"+id).find("input[type='text']").each(function(){
			$(this).removeClass("required");
	});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','none');
		});
	}
}

function initTreeValue2CallBack(){
	cydw('org1');
	cydw('org2');
}
function setEmptyValueForTree(id){
	$("#"+id).val("");
	$("#"+id+"_hideId").val("");
	$("#"+id+"_hideName").val("");
	$("#"+id+"_code").val("");
	$("#"+id+"_value").val("");
	$("#"+id+"_name").val("");
	$("#"+id + ",[name$='/"+id+"_code']" + ",[name$='/"+id+"_name'],[name$='/"+id+"_value']").val("");
	$("#sqdm").val("");
	cydw('org1');
	cydw('org2');
}
</script>

